<template>
<div>
    <div class="header">
        <div class="header-left"><i class="fa fa-angle-left fa-3x" aria-hidden="true"></i></div>
        <div class="header-input"><i class="fa fa-search" aria-hidden="true"></i>输入城市</div>
        <router-link to="City">
            <div class="header-right">{{city}}<i class="fa fa-caret-down" aria-hidden="true"></i></div>
        </router-link>
    </div>   
</div>
</template>

<script>
export default {
    props: {
        city : String,
    }
}
</script>

<style lang="stylus" scoped>
    @import '../../../assets/styles/style.styl'
    .header{
        height: 50px;
        width: 100%;
        background : $headerbgcolor;
        display: flex;
        justify-content: space-between;
        line-height: 50px;
        color: #fff;
    }
    .header-left{
        text-align: center;
        width: 60px;
        height:50px;
        line-height: 50px;
    }
    .header-input{
        background: #fff;
        margin:5px 0;
        border: 1px solid #fff;
        border-radius: 10px;
        width:275px;
        height:38px;
        line-height: 38px;
        color: #ccc;
        padding-left: 20px;
    }
    .header-right{
        text-align: center;
        width: 60px;
    }
</style>


